package com.newbee.service;

import org.springframework.stereotype.Service;

@Service
public class DemoServiceD {

    public int funcD(int x) {
        if (x < 0) {
            throw new IllegalArgumentException("参数值是一个负数");
        }
        // 模拟接口耗时
        try {
            Thread.sleep(100);
        } catch (InterruptedException e) {

        }
        return x * 10;
    }
}
